﻿using EFFC.Frame.Net.Base.Interfaces.Extentions;
using ICPFrameLib.Business;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;

namespace XHRPMISPlugin
{
    public class PluginInfo : IPluginInfo
    {
        public string Name => "XHRPMISPlugin";

        public string Version => "1.0.0";

        public Type GetBaseType()
        {
            return typeof(MyRestLogic);
        }

        public Type[] GetInvokeTypeList()
        {
            var basetype = GetBaseType();
            var assem = Assembly.GetAssembly(this.GetType());
            return assem.GetTypes().Where(w => w.IsSubclassOf(basetype)).ToArray();
        }
    }
}
